package cn.wolfcode.wolfcodemall.mapper;

import cn.wolfcode.wolfcodemall.domain.ProductImage;
import java.util.List;

public interface ProductImageMapper {
    int deleteByPrimaryKey(Integer productimageId);

    int insert(ProductImage record);

    ProductImage selectByPrimaryKey(Integer productimageId);

    List<ProductImage> selectAll();

    int updateByPrimaryKey(ProductImage record);

    //根据商品id查询商品概述图片
    List<ProductImage> selectProductSinglePic(Integer productId);

    //根据商品id查询商品详情图片
    List<ProductImage> selectProductDetailsPic(Integer productId);

    //根据商品id删除图片信息
    void deleteByProductId(Integer productId);
}